package com.yanqingshan.platform.module.sys.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yanqingshan.platform.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 功能描述: 系统角色资源对应 实体对象
 *
 * @author yanqs
 * @since 2023-05-15
 */
@Data
@Accessors(chain = true)
@TableName("sys_role_resource")
public class SysRoleResource extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 角色ID
     */
    @TableField(value = "role_id")
    private Long roleId;

    /**
     * 资源ID
     */
    @TableField(value = "resource_id")
    private Long resourceId;

}
